package com.bocloud.cmp.model;

import java.util.List;

public class HostModel {

	private String name;
	private String uuid;
	private Integer cpuNum;// 宿主机（物理机）cpu数量
	private Integer cpuCore;// 宿主机cpu核数
	private Long cpuTotal;
	private Long memTotal;
	private Long diskTotal;
	private Long cpuUsed;
	private Long memUsed;
	private Long diskUsed;
	private String category;
	private String catalog;
	private String cpuModel;
	private String vendor;
	private List<String> stores;
	private Integer vmNum;// 宿主机（物理机）上虚拟机数量
	private String powerState;// 宿主机（物理机）电源状态
	private Integer templateNum;
	private List<ServerModel> servers;// 虚拟机
	private Integer datastoreNum; // 宿主机（物理机）存储数量
	private String hostIp;
	private String status;
	private List<NetworkCardModel> netcards;// 宿主机（物理机）上的物理网卡
	private boolean maintain;// 宿主机（物理机）是否处于维护模式
	private boolean connected;// 宿主机是否处于连接状态
	private List<DataStoreModel> dataStores;
	private List<String> networks;

	public String getHostIp() {
		return hostIp;
	}

	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}

	public List<ServerModel> getServers() {
		return servers;
	}

	public void setServers(List<ServerModel> servers) {
		this.servers = servers;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the uuid
	 */
	public String getUuid() {
		return uuid;
	}

	/**
	 * @param uuid
	 *            the uuid to set
	 */
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	/**
	 * @return the cpuNum
	 */
	public Integer getCpuNum() {
		return cpuNum;
	}

	/**
	 * @param cpuNum
	 *            the cpuNum to set
	 */
	public void setCpuNum(Integer cpuNum) {
		this.cpuNum = cpuNum;
	}

	/**
	 * @return the cpuTotal
	 */
	public Long getCpuTotal() {
		return cpuTotal;
	}

	/**
	 * @param cpuTotal
	 *            the cpuTotal to set
	 */
	public void setCpuTotal(Long cpuTotal) {
		this.cpuTotal = cpuTotal;
	}

	/**
	 * @return the memTotal
	 */
	public Long getMemTotal() {
		return memTotal;
	}

	/**
	 * @param memTotal
	 *            the memTotal to set
	 */
	public void setMemTotal(Long memTotal) {
		this.memTotal = memTotal;
	}

	/**
	 * @return the diskTotal
	 */
	public Long getDiskTotal() {
		return diskTotal;
	}

	/**
	 * @param diskTotal
	 *            the diskTotal to set
	 */
	public void setDiskTotal(Long diskTotal) {
		this.diskTotal = diskTotal;
	}

	/**
	 * @return the cpuUsed
	 */
	public Long getCpuUsed() {
		return cpuUsed;
	}

	/**
	 * @param cpuUsed
	 *            the cpuUsed to set
	 */
	public void setCpuUsed(Long cpuUsed) {
		this.cpuUsed = cpuUsed;
	}

	/**
	 * @return the memUsed
	 */
	public Long getMemUsed() {
		return memUsed;
	}

	/**
	 * @param memUsed
	 *            the memUsed to set
	 */
	public void setMemUsed(Long memUsed) {
		this.memUsed = memUsed;
	}

	/**
	 * @return the diskUsed
	 */
	public Long getDiskUsed() {
		return diskUsed;
	}

	/**
	 * @param diskUsed
	 *            the diskUsed to set
	 */
	public void setDiskUsed(Long diskUsed) {
		this.diskUsed = diskUsed;
	}

	/**
	 * @return the category
	 */
	public String getCategory() {
		return category;
	}

	/**
	 * @param category
	 *            the category to set
	 */
	public void setCategory(String category) {
		this.category = category;
	}

	/**
	 * @return the catalog
	 */
	public String getCatalog() {
		return catalog;
	}

	/**
	 * @param catalog
	 *            the catalog to set
	 */
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	/**
	 * @return the cpuModel
	 */
	public String getCpuModel() {
		return cpuModel;
	}

	/**
	 * @param cpuModel
	 *            the cpuModel to set
	 */
	public void setCpuModel(String cpuModel) {
		this.cpuModel = cpuModel;
	}

	/**
	 * @return the vendor
	 */
	public String getVendor() {
		return vendor;
	}

	/**
	 * @param vendor
	 *            the vendor to set
	 */
	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	/**
	 * @return the stores
	 */
	public List<String> getStores() {
		return stores;
	}

	/**
	 * @param stores
	 *            the stores to set
	 */
	public void setStores(List<String> stores) {
		this.stores = stores;
	}

	/**
	 * @return the vmNum
	 */
	public Integer getVmNum() {
		return vmNum;
	}

	/**
	 * @param vmNum
	 *            the vmNum to set
	 */
	public void setVmNum(Integer vmNum) {
		this.vmNum = vmNum;
	}

	/**
	 * @return the powerState
	 */
	public String getPowerState() {
		return powerState;
	}

	/**
	 * @param powerState
	 *            the powerState to set
	 */
	public void setPowerState(String powerState) {
		this.powerState = powerState;
	}

	/**
	 * @return the templateNum
	 */
	public Integer getTemplateNum() {
		return templateNum;
	}

	/**
	 * @param templateNum
	 *            the templateNum to set
	 */
	public void setTemplateNum(Integer templateNum) {
		this.templateNum = templateNum;
	}

	/**
	 * @return the datastoreNum
	 */
	public Integer getDatastoreNum() {
		return datastoreNum;
	}

	/**
	 * @param datastoreNum
	 *            the datastoreNum to set
	 */
	public void setDatastoreNum(Integer datastoreNum) {
		this.datastoreNum = datastoreNum;
	}

	/**
	 * @return the cpuCore
	 */
	public Integer getCpuCore() {
		return cpuCore;
	}

	/**
	 * @param cpuCore
	 *            the cpuCore to set
	 */
	public void setCpuCore(Integer cpuCore) {
		this.cpuCore = cpuCore;
	}

	/**
	 * @return the netcards
	 */
	public List<NetworkCardModel> getNetcards() {
		return netcards;
	}

	/**
	 * @param netcards
	 *            the netcards to set
	 */
	public void setNetcards(List<NetworkCardModel> netcards) {
		this.netcards = netcards;
	}

	/**
	 * 
	 */
	public HostModel() {
		super();
	}

	/**
	 * @param name
	 * @param uuid
	 * @param cpuNum
	 * @param cpuCore
	 * @param cpuTotal
	 * @param memTotal
	 * @param diskTotal
	 * @param cpuUsed
	 * @param memUsed
	 * @param diskUsed
	 * @param category
	 * @param catalog
	 * @param cpuModel
	 * @param vendor
	 * @param stores
	 * @param vmNum
	 * @param powerState
	 * @param templateNum
	 * @param servers
	 * @param datastoreNum
	 * @param hostIp
	 * @param status
	 * @param netcards
	 * @param maintain
	 * @param connected
	 */
	public HostModel(String name, String uuid, Integer cpuNum, Integer cpuCore, Long cpuTotal, Long memTotal,
			Long diskTotal, Long cpuUsed, Long memUsed, Long diskUsed, String category, String catalog, String cpuModel,
			String vendor, List<String> stores, Integer vmNum, String powerState, Integer templateNum,
			List<ServerModel> servers, Integer datastoreNum, String hostIp, String status,
			List<NetworkCardModel> netcards, boolean maintain, boolean connected) {
		super();
		this.name = name;
		this.uuid = uuid;
		this.cpuNum = cpuNum;
		this.cpuCore = cpuCore;
		this.cpuTotal = cpuTotal;
		this.memTotal = memTotal;
		this.diskTotal = diskTotal;
		this.cpuUsed = cpuUsed;
		this.memUsed = memUsed;
		this.diskUsed = diskUsed;
		this.category = category;
		this.catalog = catalog;
		this.cpuModel = cpuModel;
		this.vendor = vendor;
		this.stores = stores;
		this.vmNum = vmNum;
		this.powerState = powerState;
		this.templateNum = templateNum;
		this.servers = servers;
		this.datastoreNum = datastoreNum;
		this.hostIp = hostIp;
		this.status = status;
		this.netcards = netcards;
		this.maintain = maintain;
		this.connected = connected;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the maintain
	 */
	public boolean isMaintain() {
		return maintain;
	}

	/**
	 * @param maintain
	 *            the maintain to set
	 */
	public void setMaintain(boolean maintain) {
		this.maintain = maintain;
	}

	/**
	 * @return the connected
	 */
	public boolean isConnected() {
		return connected;
	}

	/**
	 * @param connected
	 *            the connected to set
	 */
	public void setConnected(boolean connected) {
		this.connected = connected;
	}

	/**
	 * @return the dataStores
	 */
	public List<DataStoreModel> getDataStores() {
		return dataStores;
	}

	/**
	 * @param dataStores
	 *            the dataStores to set
	 */
	public void setDataStores(List<DataStoreModel> dataStores) {
		this.dataStores = dataStores;
	}

	/**
	 * @return the networks
	 */
	public List<String> getNetworks() {
		return networks;
	}

	/**
	 * @param networks
	 *            the networks to set
	 */
	public void setNetworks(List<String> networks) {
		this.networks = networks;
	}

}
